<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title><?php echo ($webData["title"]); ?></title>
		<link rel="shortcut icon" href=" __PUBLIC__/Imgs/bitbug_favicon.ico" />
		<link href="__PUBLIC__/Home/Css/header.css" rel="stylesheet" type="text/css" />	
	</head>
	<body>
		<div id="header_top">
<!--			<img src="__ROOT__/Uploads/thumb/th_<?php echo ($webData["logo"]); ?>" style="float:left;" width="150">-->
			<img src="__ROOT__/Uploads/thumb/st.jpg" style="float:left;" width="150">
			<form action="__APP__/Index/searchFoods" method="post">
				<input type="text" id="header_seach" name="fname">
				<input type="submit" id="header_sub" value="搜索">
			</form>

			<ul id="header_ul">
				<li><a href="__APP__/Index/index/">首页</a></li>
				<li><a href="__APP__/Bclass/index/">菜谱分类</a></li>
			</ul>
			<div id="header_login">
			<?php if(empty($_SESSION['uname'])): ?><span>
						<a href="__APP__/Login/login/" target="_blank">
							登录
						</a>
					</span>
					<span>
						<a href="__APP__/Login/reg/" target="_blank">
							注册
						</a>
					</span>
			<?php else: ?>				
				<span>
					<a href="">
					<?php echo (session('uname')); ?>
					</a>
				</span>
				<span>
					<a href="__APP__/Ucenter/index/pass">
					个人中心
					</a>
				</span>
				<span>
					<a href="__APP__/Carts/showCarts/">
					购物车
					</a>
				</span>
				<?php if(!empty($_SESSION['uMsg'])): ?><span>
					<a href="__APP__/Posts/details/form_number/<?php echo (session('uMsg')); ?>" class="clearMsg">
					新订单
					</a>
				</span><?php endif; ?>
				<span style="font-size:14px;">
					<a href="__APP__/Public/loginout/">
					退出
					</a>
				</span><?php endif; ?>
			</div>
		</div>
		<div style="clear:both;height:30px;"></div>
	</body>
</html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>bclass index</title>
	<link rel="stylesheet" href="__PUBLIC__/Home/Css/bclass_index.css">
	<script src="__PUBLIC__/Home/Js/jquery-1.8.3.js"></script>
	<script>
		$(function(){
			$('.li_content').mouseover(function(){
				$(this).css({'background':'#B24422', 'color':'white'});
			}).mouseout(function(){
				$(this).css({'background':'white', 'color':'#992222'});
			});
		});
	</script>
</head>
<body>
	<div id="bclass_index">
		<div style="color:#1F1F1F;font-size:16px;">分类浏览</div>
		<div style="background:white;min-height:600;width:960px;">
			<?php if(is_array($classData)): $i = 0; $__LIST__ = $classData;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="bclass_list">
					<div class="bclass_list_left">
						<div style="margin-top:10px;">
							<img src="__ROOT__/Uploads/Bclass/<?php echo ($vo["pic"]); ?>"/>
						</div>
						<div style="text-align:center;color:#5F5F5F;font-size:14px;"><b><?php echo ($vo["bname"]); ?></b></div>
					</div>
					<div class="bclass_list_right">
						<ul>					
							<?php if(is_array($vo["sclass"])): $i = 0; $__LIST__ = $vo["sclass"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bo): $mod = ($i % 2 );++$i;?><li>		
								<a href="__APP__/Sclass/index/id/<?php echo ($bo["id"]); ?>" class="foods_type" title="<?php echo ($bo["sname"]); ?>" alt="<?php echo ($bo["id"]); ?>">

									<span class="li_content"><?php echo ($bo["sname"]); ?></span>
								</a>
							</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
				</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
</body>
</html>